﻿@model Vcare.Models.Companies

@{
    ViewBag.Title = "Edit";
}

<h2>Edit SME</h2>
<div class="spacer">
</div>
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Companies</legend>
        
        @Html.HiddenFor(m => m.CompanyID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Company)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Company)
            @Html.ValidationMessageFor(model => model.Company)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Address1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Address1)
            @Html.ValidationMessageFor(model => model.Address1)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Address2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Address2)
            @Html.ValidationMessageFor(model => model.Address2)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.District)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.District)
            @Html.ValidationMessageFor(model => model.District)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Town)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Town)
            @Html.ValidationMessageFor(model => model.Town)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.County)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.County)
            @Html.ValidationMessageFor(model => model.County)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Postcode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Postcode)
            @Html.ValidationMessageFor(model => model.Postcode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Telephone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telephone)
            @Html.ValidationMessageFor(model => model.Telephone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WWW)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WWW)
            @Html.ValidationMessageFor(model => model.WWW)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HeadOffice)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HeadOffice)
            @Html.ValidationMessageFor(model => model.HeadOffice)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Branch)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Branch)
            @Html.ValidationMessageFor(model => model.Branch)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CreditChecked)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreditChecked)
            @Html.ValidationMessageFor(model => model.CreditChecked)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Alias)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Alias)
            @Html.ValidationMessageFor(model => model.Alias)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Category)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Category)
            @Html.ValidationMessageFor(model => model.Category)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.logo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.logo)
            @Html.ValidationMessageFor(model => model.logo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CoNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CoNumber)
            @Html.ValidationMessageFor(model => model.CoNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Tel2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Tel2)
            @Html.ValidationMessageFor(model => model.Tel2)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DefaultTelephoneField)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DefaultTelephoneField)
            @Html.ValidationMessageFor(model => model.DefaultTelephoneField)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
